<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <!-- label标签里的for相当于锚点标签里的标题的标记，而input中的id相当于锚点标签里的链接#id -->
        <input type="radio" name="sex" id="nan"/><label for="nan">男</label>
        <input type="radio" name="sex" id="nv"/><label for="nv">女</label>
    </form>
</body>
</html>